<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${ctx}/scripts/public3.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/ajaxException.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
</head>
<style type="text/css" >
	  .onclickbg{
	  	background-color:#FEEC8C;
	  }
	  .offclickbg{
	  	background-color:#ffffff;
	  }
</style>
<script type="text/javascript">
    var currType = "event"
	function flushFrame(type){
		if(currType == type) return;
		currType = type;

		if(type == "event"){
			var url = "${ctx}/houseMainLin_houseMainLineAction.do?method=listCustomerEvent&houseNumber=${houseNumber}";
			document.frames["frameList"].document.location.href = url;
		}else if(type=="thingEntrust"){
			var thingEntrustUrl = "${ctx}/thing_thingEntrustAction.do?method=setThingEntrustQueryCondition2Cache";
			var params = "houseNumber=${houseNumber}";

			sendAjaxRequest(thingEntrustUrl,params,function(result){
				ajaxSubmitException(result.responseText);
				var url = "${ctx}/thing_thingEntrustAction.do?method=thingEntrustList&isShowMenu=false";
				document.frames["frameList"].document.location.href = url;
			});
		}
	}
	/**************托管服务,对应js方法*************/
	var currentThingId = null;
	function setThingEntrustId(_currentThingId){
		currentThingId = _currentThingId;
	}
	function showDetail(){
   		var url = "${ctx}/thing_thingEntrustAction.do?method=getThingEntrustDetail&id="+currentThingId;
		top.windowOpen(url, 'houseChoose', '物品托管', 530, 550, true, "houseChoose");
	}
	/***********end*************/
   function resize(){
		parent.window.document.all("houseMainLinePanel").style.height=document.body.scrollHeight;
   }
</script>
<body onload="resize();">
<div style="background-color: #F8FBFE;">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td >
     <table width="100%" border="0" cellpadding="0" cellspacing="0" class="container_in_show">
      <tr>
        <td valign="top">
           <div id="expensedetail">
                <table width="100%" border="0" cellpadding="5" cellspacing="1">
                  <tr>
                    <td >
                    	<ul id="tags">
                        <li id="custEvent" class="selectTag"
                        	onClick="this.className='selectTag';document.getElementById('thing').className='';flushFrame('event')">
                          <div align="left">客服事件</div>
                        </li>
                        <li id="thing"
                        	onClick="document.getElementById('custEvent').className='';this.className='selectTag';flushFrame('thingEntrust');" >
                        	托管服务</li>
                    	</ul>
                   </td>
                  </tr>
                </table>
			    <div id="tagConten" style="height:282px;">
                  <table width="100%" border="0" cellpadding="0" cellspacing="0"  id="tagContent0">
                    <tr>
                      <td class="bg_toolBar" style="text-align:left"></td>
                    </tr>
                    <tr>
                    <td class="">
						<iframe  id="frameList"
							name="frameList" height="335px" frameborder="0" border="0"  width="100%"
							src="${ctx}/houseMainLin_houseMainLineAction.do?method=listCustomerEvent&houseNumber=${houseNumber}" ></iframe>
      				</td>
    				</tr>
                  </table>
			    </div>
        </div>
        </td>
        </tr>
       </table>
    </td>
  </tr>
</table>
</div>
</body>
</html>
